package com.xinbochuang.machine.admin.mapper.macRoom;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xinbochuang.machine.admin.domain.macRoom.Equipment;
import com.xinbochuang.machine.admin.domain.macRoom.EquipmentDetail;
import com.xinbochuang.machine.admin.dto.EquipmentDetailDto;

/**
 *
 * @author 杜文博
 * @date 2020-09-08
 */
@Mapper
public interface EquipmentDetailMapper extends BaseMapper<EquipmentDetail> {

	List<EquipmentDetail> findEquDetailByAssetsNum(String macName);

	//分页查询设备
	List<EquipmentDetailDto> findEquDetailByCabinetName(@Param("cabinetId") String cabinetId,@Param("pageNum") String
		pageNum,@Param("pageSize") String pageSize );

	Integer EquDetailTotalCount(@Param("cabinetId") String cabinetId,@Param("pageNum") String
		pageNum,@Param("pageSize") String pageSize );

	/**
	 * 根据机柜名称，机房名称，所属U位查询设备
	 * @param macName
	 * @param cabinetName
	 * @param equHeight
	 * @return
	 */
	List<Equipment> findEqupment(@Param("macName")String macName,@Param("cabinetName")String cabinetName,@Param("equHeight")String equHeight);

	EquipmentDetail selectByEquId(String equId);


	List<EquipmentDetailDto> selectByCabinetId(@Param("cabinetId") String cabinetId);
}
